{% extends "base.html" %}

{% block pagetitle %}
  {% for post in post_list %}
  <title>{{ post.category }}</title>
  {% endfor %}
{% endblock %}

{% block content %}
  <div class="blog-post">
    {% for post in post_list %}
      <h2 class="blog-post-title"><a href="{% url 'detail' id=post.id %}">{{ post.title }}</a></h2>
        <p class="blog-post-meta">
          Time：<a class="btn btn-xs btn-info">{{ post.date_time}}</a>
          <a class="post-category post-category-js" href="#">{{ post.label}}</a>
        </p>
        <br />
    {% endfor %}
  </div><!-- /.blog-post -->
{% endblock %}